/*
* Copyright© 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.netty.server.server.module.login.handler;

import com.laihuichuxing.netty.common.core.annotion.SocketCommand;
import com.laihuichuxing.netty.common.core.annotion.SocketModule;
import com.laihuichuxing.netty.common.core.session.Session;
import com.laihuichuxing.socket.LoginCmd;
import com.laihuichuxing.socket.ModuleId;
import io.netty.channel.Channel;

/**
 * Description: 登录模块
 *
 * @author YangGuang
 * @since: 1.0
 * Create Date Time: 2018/7/16 16:08
 * Update Date Time:
 */
@SocketModule(module = ModuleId.LOGIN)
public interface LoginHandler {

    /**
     * 登录
     *
     * @param session session
     * @param data    data
     * @return
     */
    @SocketCommand(cmd = LoginCmd.USER_LOGIN)
    void login(Session session, byte[] data,Channel channel);

    @SocketCommand(cmd = 2)
    void testLogin(Session session, byte[] data);
}
